package com.qimo.zzy.dao;

import com.qimo.zzy.entity.CollectionEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 收藏模块
 */
@Mapper
public interface CollectionDao {
    //获取当前用户的所有收藏
    List<CollectionEntity> getAllCollection(int uid);

    //将当前商品加入收藏
    int creatCollection(int uid,int pid);

    //当前商品取消收藏
    int deleteCollection(int uid,int pid);
}
